home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
DBPCXL15.ARJ
/
SRC_C.ARJ
/
PCX1.C
< prev
next >
Wrap
Text File
|
1992-01-26
|
995b
|
37 lines
#include <stdio.h>
#include <io.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#include <alloc.h>
#include <mem.h>
#include <dos.h>
#include <errno.h>
#include "pcxlib.h"
#include "vidlib.h"
/*/////////////////////////////////////////////////////////////////////////
// fread1PCX
///////////////////////////////////////////////////////////////////////////*/
int fread1PCX(char *d, unsigned dw, unsigned dl, unsigned dx, unsigned dy,
unsigned x0, unsigned y0, unsigned x1, unsigned y1, PCXF *p)
{
int h;
char *dest;
if (pcxdebug) {
fprintf(pcxdebug,
"\nfread1PCX(%Fp, %u, %u, %u, %u, %u, %u, %u, %u, %Fp",
d, dw, dl, dx, dy, x0, y0, x1, y1, p);
}
dest=(char *)normalize((char *)((long)d + (long)(dy*dw + dx)));
for (h=y0; h < y1+1; h++) {
_read_pcx_line( p, dest, x0, x1);
dest=(unsigned char *)normalize(dest + dw);
}
return(y1);
}